package com.freshman.feign.service;

import com.freshman.dto.OrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "ORDER-SERVICE",fallback = OrderServiceHystric.class)
public interface OrderService {
    @RequestMapping(value = "/query",method = RequestMethod.POST)
    String query(@RequestBody OrderDTO orderDTO,@RequestParam("phone") String phone);
}
